package com.sky.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.HashMap;

/**
 * ClassName: ReportMapper
 * Package: com.sky.mapper
 * Description:
 *
 * @Author: 葛龙
 * @Create 2025/3/10 11:17
 * @Version 1.0
 */
@Mapper
public interface ReportMapper {
    /**
     * 获取当天的统计额
     * @param map
     * @return
     */
    Double getTurnover(HashMap<Object, Object> map);

    /**
     * 统计用户数量
     * @param beginTime
     * @param endTime
     * @return
     */
    Integer getUserCount(LocalDateTime beginTime, LocalDateTime endTime);


    /**
     * 订单统计
     * @return
     */
    Integer getorderStatistics(LocalDateTime beginTime, LocalDateTime endTime, Integer status);

}
